package com.example.lijuan.myapplication.Util;

/**
 * Created by nilesh on 9/23/2015.
 */
import com.amap.api.maps2d.model.LatLng;

public class Constants {

    public static final String WAKE_LOCK_TAG="com.sitatech.dashboard.service.LocationPollerService";


    public static final boolean DEBUG = false;

    public static final LatLng TIANJIN = new LatLng(39.08662, 117.203887);// 天津市经纬度
    public static final long LOCATION_TIMEOUT = 10000;
    public static final long LOCATION_REQUEST_TIMEOUT = 10000;

    public static final float LOCATION_ZOOM = 15.5f;

    public static final float ALERT_DISTANCE = 50.0f;

    public static final int LOCATION_SEND_INTERVAL_MIN_VALUE = 10000;
    public static final float LOCATION_ACCURACY = 10.0f;
    public static final String IDENTIFIER_TYPE = "TQPADREST";
    public static final String IDENTIFIER = "IDENTIFIER";
    public static final String EXTRA_ERROR =
            "com.sitayun.dashboard.locserv.EXTRA_ERROR";
    public static final String EXTRA_INTENT =
            "com.sitayun.dashboard.locserv.EXTRA_INTENT";
    public static final String EXTRA_LOCATION =
            "com.sitayun.dashboard.LocationService.EXTRA_LOCATION";
    public static final String EXTRA_LASTKNOWN =
            "com.sitayun.dashboard.locserv.EXTRA_LASTKNOWN";
    /**
     * If this is returned true (defaults to false unless
     * provider is explicitly NOT enabled), then the provider
     * could not be enabled.
     */
    public static final String EXTRA_ERROR_PROVIDER_DISABLED =
            "com.sitayun.dashboard.locserv.EXTRA_ERROR_PROV_DISABLED";
    /**
     * Optional Timeout. Pass milliseconds as a long. Defaults
     * to 15 seconds.
     */
    public static final String EXTRA_TIMEOUT =
            "com.sitayun.busclient.locserv.EXTRA_TIMEOUT";

    public static final String SERVER_HOST = "182.254.212.137";
    public static final int SERVER_REST_PORT = 8080;
    public static final String SERVER_REST_SCHEMA = "http";
    public static final String SERVER_ADDRESS = SERVER_REST_SCHEMA + "://" + SERVER_HOST + ":" + SERVER_REST_PORT + "/";

    public static final int SERVER_XMPP_PORT = 5222;
    public static final String SERVER_XMPP_SERVICE = "sitasrvtenshg001";
    public static final String SERVER_XMPP_ACCOUNT = "sixmppmailbox" + "@" + SERVER_XMPP_SERVICE;

    public static final String UPLOAD_SERVER_ROOT = "http://182.254.212.137:8080/dspt/if1";
    public static final String UPLOAD_LOCATION_SERVER_URI = "/create/event/pad";
    public static final String UPLOAD_LOCATION_MEDIA_TYPE = "application/vnd.sita.tsp.if1.create.event.v1+octet-stream";

    public static final String CONTENT_TYPE = "Content-Type: " + UPLOAD_LOCATION_MEDIA_TYPE;
    public static final String ACCEPT = "Accept: " + UPLOAD_LOCATION_MEDIA_TYPE;
    public static final long TIMEOUT = 5000;
    public static final String APPLICATION_OCTET_STREAM_VALUE = "application/octet-stream";

    public static final String CAR_TRIPS_SUMMARY = "/car/ifvsi/devices/CAR_A00A000002/trips/summary";
}
